//
//  CoursesManager.m
//  mUBB
//
//  Created by Cosmin Stirbu on 2/24/13.
//  Copyright (c) 2013 Cosmin Stirbu. All rights reserved.
//

#import "CoursesManager.h"
#import "WSManager+Courses.h"

@implementation CoursesManager

// Singleton
+ (CoursesManager *)instance
{
    static CoursesManager *instance = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        instance = [[CoursesManager alloc] init];
        // Do any other initialisation stuff here
    });
    return instance;
}


- (Ticket *)getCoursesByKeyword:(NSString *)keyWord filter:(NSString *)filter take:(NSInteger)take skip:(NSInteger)skip delegate:(id<CoursesProtocol>)delegate {
    return [[WSManager instance] getCoursesByKeyword:keyWord filter:filter take:take skip:skip delegate:delegate];
}

- (Ticket *)getCourseDetailsForCourse:(Course *)course delegate:(id<CoursesProtocol>)delegate {
    return [[WSManager instance] getCourseDetailsForCourse:course delegate:delegate];
}

- (Ticket *)getStudyGroupsForCourseCode:(NSString *)courseCode delegate:(id<CoursesProtocol>)delegate {
    return [[WSManager instance] getStudyGroupsForCourseCode:courseCode delegate:delegate];
    
}

- (Ticket *)getTypesOfClassesForCourseCode:(NSString *)courseCode delegate:(id<CoursesProtocol>)delegate {
    return [[WSManager instance] getTypesOfClassesForCourseCode:courseCode delegate:delegate];
}
@end
